#include<bits/stdc++.h>
using namespace std;
int main(){
	int n0, n1, n;
	cin >> n0 >> n1 >> n;
	if((!n0 && n1%n) || (!n1 && n0%n)){
		cout << "No Solution";
		return 0;
	}
	
	int female, male, flag = 0;
	int minus = 0x3f3f3f3f;
	for(int i = 1; i < n; i++){
		if(n0%i)
			continue;
		if(n1%(n-i))
			continue;
		int t1 = n0/i;
		int t2 = n1/(n-i);
		
		if(i == n0 || n-i == n1)
			continue;
		
		if(abs(t1-t2) < minus){
			flag = 1;
			minus = abs(t1-t2);
			female = t1;
			male = t2;
			
			cout << female << " " << male<<endl;
		}
	}
	if(flag)
		cout << female << " " << male;
	else
		cout << "No Solution";
	return 0;
}
